<template>
	<view class="liver-container">
		<u-navbar bgColor="#000000" autoBack height="90" placeholder fixed>
			<view class="u-nav-slot" slot="center">
				<!-- 正文内容 -->
				<text style="font-size: 46rpx;font-weight: bold;">直播</text>
			</view>
		</u-navbar>
		<view class="liver-hd">
			<view class="hd-item">
				<image src="../../static/imgs/qd.png" mode=""></image>
				<text>签到打卡</text>
			</view>
			<view class="hd-item">
				<image src="../../static/imgs/yy.png" mode=""></image>
				<text>签到打卡</text>
			</view>
		</view>
		<view class="liver-title">
			精选直播
		</view>
		<view class="live-content">
			<view class="content-item" v-for="(item,index) in list" :key="index">
				<image :src="item.img" mode=""></image>
				<view class="item-name">
					{{item.name}}
				</view>
				<view class="item-title">
					{{item.title}}
				</view>
				<view class="item-time">
					{{item.time}}
				</view>
			</view>
		</view>
		<view class="liver-title">
			精彩回放
		</view>
		<view class="live-rest">
			<view class="rest-item">
				<image src="../../static/imgs/live7.png" mode=""></image>
				<view class="rest-time">五小时前结束</view>
				<view class="rest-name">young</view>
				<view class="rest-title">臀腿燃脂训练</view>
				<view class="level">二级.20分钟</view>
			</view>
			<view class="rest-item">
				<image src="../../static/imgs/live8.png" mode=""></image>
				<view class="rest-time">一小时前结束</view>
				<view class="rest-name">young</view>
				<view class="rest-title">蜜桃臀打造训练</view>
				<view class="level">二级.20分钟</view>
			</view>
		</view>
		<view class="live-yy">
			<view class="yy-item">
				<view class="yy-left">
					<view class="left-time">
						<view class="time-start">
							16：00
						</view>
						<view class="time-end">16：35结束</view>
					</view>
					<view class="yy-content">
						<view class="yy-name">腰腹燃脂训练</view>
						<view class="yy-desc">35分钟.315千卡.k3进阶</view>
						<view class="yy-user">
							<image src="../../static/imgs/user-avtar.png" mode=""></image>
							<text>喵小姐瘦身日记</text>
						</view>
					</view>
				</view>
				<view class="yy-right">
					<view class="yy-btn">预约</view>
				</view>
			</view>
			<view class="yy-item">
				<view class="yy-left">
					<view class="left-time">
						<view class="time-start">
							22：00
						</view>
						<view class="time-end">22：35结束</view>
					</view>
					<view class="yy-content">
						<view class="yy-name">气质瑜伽.修长腿型</view>
						<view class="yy-desc">35分钟.217千卡.k1初阶</view>
						<view class="yy-user">
							<image src="../../static/imgs/user-avtar.png" mode=""></image>
							<text>团子小姐姐</text>
						</view>
					</view>
				</view>
				<view class="yy-right">
					<view class="yy-btn">预约</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: "蓝乔",
						title: "高效瘦腿.消除脂肪腿",
						time: "一级.10分钟",
						img: "../../static/imgs/live1.png"
					},
					{
						name: "bingo",
						title: "暴汗搏击",
						time: "二级.40分钟",
						img: "../../static/imgs/live2.png"
					},
					{
						name: "晓晓",
						title: "身心舒展",
						time: "二级.40分钟",
						img: "../../static/imgs/live3.png"
					},
					{
						name: "diva",
						title: "燃脂骑行",
						time: "二级.40分钟",
						img: "../../static/imgs/live4.png"
					},
					{
						name: "子存",
						title: "晚安瑜伽.助眠放松",
						time: "二级.40分钟",
						img: "../../static/imgs/live5.png"
					},
					{
						name: "子存",
						title: "燃脂热舞操",
						time: "二级.40分钟",
						img: "../../static/imgs/live6.png"
					},
				]
			};
		}
	}
</script>

<style lang="scss" scoped>
	.liver-container {
		height: 100%;
		background-color: #000000;
		padding: 0 35rpx;
		overflow-y: auto;

		.liver-hd {
			display: flex;
			align-items: center;
			justify-content: space-between;

			.hd-item {
				width: 326rpx;
				height: 100rpx;
				border-radius: 10rpx;
				background: #262626;
				display: flex;
				align-items: center;
				justify-content: center;

				image {
					width: 49rpx;
					height: 49rpx;
					margin-right: 20rpx;
				}
			}
		}

		.liver-title {
			color: #909090;
			font-size: 36rpx;
			margin: 40rpx 0;
		}

		.live-content {
			display: flex;
			align-items: center;
			justify-content: space-between;
			flex-wrap: wrap;

			.content-item {
				margin-bottom: 40rpx;

				image {
					width: 325rpx;
					height: 180rpx;
				}

				.item-name {
					position: relative;
					left: 20rpx;
					bottom: 40rpx;
					font-size: 24rpx;
				}

				.item-title {
					font-weight: bold;
					font-size: 30rpx;
				}

				.item-time {
					color: #4A4747;
					font-weight: bold;
					font-size: 18rpx;
				}
			}
		}

		.live-rest {
			display: flex;
			align-items: center;
			justify-content: space-between;

			.rest-item {
				width: 325rpx;
				position: relative;

				image {
					width: 325rpx;
					height: 203rpx;
				}

				.rest-title {
					margin: 10rpx 0;
				}

				.rest-time {
					position: absolute;
					top: 20rpx;
					right: 20rpx;
					width: 160rpx;
					border-radius: 10rpx;
					background: #262626;
					height: 47rpx;
					font-size: 18rpx;
					line-height: 47rpx;
					text-align: center;
				}

				.rest-name {
					position: absolute;
					bottom: 90rpx;
					left: 20rpx;
				}

				.level {
					color: #4A4747;
					font-size: 18rpx;
					font-weight: bold;
				}
			}
		}

		.live-yy {
			margin: 40rpx 0;

			.yy-item {
				display: flex;
				justify-content: space-between;
				padding: 30rpx 26rpx;
				border-radius: 10rpx;
				background: #262626;
				margin-bottom: 40rpx;

				.yy-left {
					display: flex;
					align-items: center;

					.left-time {
						margin-right: 40rpx;

						.time-start {
							font-size: 48rpx;
							margin-bottom: 40rpx;
						}

						.time-end {
							font-size: 30rpx;
							color: #767676;
						}
					}

					.yy-content {
						.yy-name {

							color: #434242;
							font-size: 36rpx;
						}

						.yy-desc {
							font-size: 24rpx;
							color: #909090;
							margin-top: 15rpx;
						}

						.yy-user {
							display: flex;
							align-items: center;
							margin-top: 15rpx;

							image {
								width: 40rpx;
								height: 40rpx;
							}

							text {
								font-size: 16rpx;
							}
						}
					}
				}

				.yy-right {
					.yy-btn {
						margin-top: 100rpx;
						width: 93rpx;
						color: #1A1A1A;
						border-radius: 15rpx;
						border: 1px solid #000000;
						background: #F6FF00;
						height: 30rpx;
						line-height: 30rpx;
						text-align: center;
						font-size: 18rpx;
					}
				}
			}
		}
	}
</style>
